BASS_ChannelSetPosition

Sets the playback position of a sample, MOD music, or CD channel.

BOOL WINAPI BASS_ChannelSetPosition(
    DWORD handle,
    DWORD pos
);

Parameters
handleThe channel handle... a HCHANNEL, HMUSIC, or CDCHANNEL.
posThe position, as follows.
HCHANNELPosition in bytes.
HMUSICLOWORD = order, HIWORD = row.
CDCHANNELPosition in milliseconds from the start of the track.

Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_HANDLEhandle is not a valid channel.
BASS_ERROR_CDINIT BASS_CDInit has not been successfully called.
BASS_ERROR_POSITIONThe requested position is illegal.
BASS_ERROR_UNKNOWNSome other mystery problem!

Example
To set the position of a MOD music to row 20 of order 10.

BASS_ChannelSetPosition(a_music,MAKELONG(10,20));

See also
BASS_ChannelGetPosition, BASS_ChannelIsActive